home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / gs_demo / aag_info next >
Text File  |  1996-06-04  |  12KB  |  209 lines

  1. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. // Name:    AAG Draft Programmers command outline.
  3. // Author:  Steven Mortimer/Chris Wiles
  4. // Rights:  Active Software//Steven Mortimer
  5. // Notes:
  6. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  7. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  8.  
  9. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  10. // Page Identification  ////////////////////////////////////////////////////////////////////////////////
  11. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  12. @NODE   "node name"                 // Header _MUST_ be present.
  13. @ENDNODE
  14.  
  15. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  16. // Page Navigation  ////////////////////////////////////////////////////////////////////////////////////
  17. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  18. @PREV   "current prev node name"    // Optional, If not present, Button will be deactiveated
  19. @NEXT   "current next node name"    // Optional, If not present, Button will be deactiveated
  20. @FIRST  "first node name"           // Optional, If not present, Button will be deactiveated
  21. @LAST   "last node name"            // Optional, If not present, Button will be deactiveated
  22.  
  23. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  24. // Text Formatting  ////////////////////////////////////////////////////////////////////////////////////
  25. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  26. @MARGIN  left margin    Sets left margin
  27. @WIDTH   pixelwidth     Sets width of column. Defaults to @MARGIN 10 @WIDTH 620
  28. @CENTER  text to center  Centers the next line only.
  29. @GOTO    Xpos,Ypos       Goto absoute pixel Position. IE @GOTO 10,10
  30. @COLOUR  x               (where x is one of )  CYAN,BLACK,,GREY,LIGHTGREY,WHITE,BRIGHTWHITE,DARKRED,RED,LIGHTRED,DARKGREEN
  31.                                               GREEN,LIGHTGREEN,DARKORANGE,LIGHTORANGE,YELLOW,DARKBLUE,BLUE,LIGHTBLUE
  32.                                               BROWN,DARKPURPLE,PURPLE,LIGHTPURPLE,PINK,PURPLEBLUEWITHYELLOWDOTS:)
  33. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  34. // Misc Text Commands  /////////////////////////////////////////////////////////////////////////////////
  35. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  36. @FONT    "Font name"            Changes the current font to xx
  37.  
  38. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  39. // Page Linking  ///////////////////////////////////////////////////////////////////////////////////////
  40. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  41. @{"text" [link commands]}
  42.  
  43. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  44. // Image's and Gadgets  ////////////////////////////////////////////////////////////////////////////////
  45. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  46. @IMAGE  {"name"|Xpos/Ypos [link commands]}
  47.  
  48. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  49. // {} commands /////////////////////////////////////////////////////////////////////////////////////////
  50. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  51. link "..."  Node or file/node to link to when clicked
  52. help "..."  Help text to be displayed in help bar
  53. dict "..."  Dictionary page to be loaded when clicked
  54. mod  "..."  Mod name to be loaded and played when clicked
  55.  
  56. @IMAGE  {"name"|Xpos/Ypos link "filename/node name" help "text" mod "mod to play" dict "search text"}
  57.  
  58. note: you can link zones, so one effects the rest of the chain.
  59. @IMAGE {} can now be used within the link to chain images.. i.e.
  60.  
  61. @IMAGE {"fred"|10,10 help "whatever" @IMAGE{"fred2"|65,65 help "what" link "whereever"}}
  62.  
  63. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  64. // Graphics Functions  /////////////////////////////////////////////////////////////////////////////////
  65. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  66. @LINE     x1,y1 to x2,y2[,colour]           Draws a line in current colour
  67. @BOX      x1,y1 to x2,y2[,colour]           OutLine box in current colour
  68. @BAR      x1,y1 to x2,y2[,colour]           Solid Box in current colour
  69. @ARROW    x1,y1 to x2,y2[,colour]           Draws and Arror FROM x1,y1 TO x2,y2
  70. @ELLIPSE  x1,y1 size xwidth,ywidth[,colour] Draws outline ellipse in current colour
  71. @FELLIPSE x1,y1 size xwidth,ywidth[,colour] Draws Solid ellipse in current colour
  72.  
  73. @RBAR     x1,y1 to x2,y2[,colour]           Raised Solid Box in current colour
  74. @LBAR     x1,y1 to x2,y2[,colour]           Lowered Solid Box in current colour
  75. @RELLIPSE x1,y1 size xwidth,ywidth[,colour] Raised Solid ellipse in current colour
  76. @LELLIPSE x1,y1 size xwidth,ywidth[,colour] Raised Solid ellipse in current colour
  77. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  78. // Notes:  /////////////////////////////////////////////////////////////////////////////////////////////
  79. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  80.  
  81. .oO '' can be used instead of ""
  82. .oO "" sorounding text are only needed if the text has spaces.
  83.   
  84.   eg.
  85.  
  86.   @IMAGE {fred.gad|10/10}               Is Valid
  87.   @image {'fred".gad"|10/10}            Is Valid
  88.   @Image {"fred".gad"|10/10}            Is Valid
  89.   @ImAgE {"freds'old image"|10/10}      Is Valid
  90.   @IMAGE {'freds'old image'|10/10}      Is Invalid
  91.   @IMAGE {freds'old image|10/10}        Is Invalid
  92.  
  93. .oO Fresh node will reset to following automatically
  94.  
  95.   @FONT    helvetica.12.mfont
  96.   @MARGIN  10
  97.   @WIDTH   620
  98.   @COLOUR  WHITE
  99.   @GOTO    10/0
  100.   @SPACING 10
  101.   @COLUMNS 1
  102.  
  103. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  104. // New Commands ////////////////////////////////////////////////////////////////////////////////////////
  105. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  106. @SPACING xx                         Where xx is line spaceing in pixels (Default to 10) (font sensative)
  107. @SETZONE x,y,width,height,columns   This is a bit tricky, so try it and see.
  108.                                     Sets up a text zone on the screem at co-ords x,y to x+width,y+height 
  109.                                     and divides it into x columns, each equally spaced. The following 
  110.                                     commands break the text zone and revert to normal, uncolumed printing
  111.                                     @GOTO 
  112.                                     @MARGIN
  113.                                     @WIDTH
  114.                                     @CENTER - Each of these set up the default text zone (the whole screen)
  115.                                               and then override the relevent parameter.
  116.  
  117.                                     Default text zone, which is set up for a fresh page etc is
  118.                                     @SETZONE 10,10,620,430,1 
  119.  
  120. ¤                                   preforms a column break, is moves to the top of the next coloum (Alt &y = ¤)
  121. @PAGE "xxx"                         Appears in Page slot at bottom of page
  122. @SECTION "xxx"                      Appears in Section slot at bottom of page
  123. @ZONE  {X,Y,Width,Height link commands} Invisable mouse zone...
  124. @IZONE {X,Y,Width,Height link commands} Invisable mouse zone, imidiate, does not wait for mouse...
  125.  
  126. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  127. // Comming soon to an AAG near you :- //////////////////////////////////////////////////////////////////
  128. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  129. @ARROW x,y TO x,y,[colour]          Draws an arrow (point at secound co-ords).
  130. @ANIM  {"name"|Xpos/Ypos [link commands] }
  131.                                     Plays anim on screen acording to anim script
  132. @SAMPLE "name",XX                   where XX is ON or OFF, meaning LOOP ON or LOOP OFF.
  133.                                     Plays sample instantly upon loading... Will terminate upon change of page
  134.                                     see sample player details.
  135.  
  136. more {} commands :-
  137.  
  138. endanim "name"|Xpos/Ypos   Plays anim when selected (not clicked..)
  139. remote  "name"|Xpos/Ypos   Toggles gadget at remote place when mouse is over zone. (ie title screen). Can 
  140.                            also be used to have 3 phaze anim on buttons... Highlights when mouse over it, and
  141.                            somthing else when clicked...
  142. samdown "name"             plays sample when clicked down
  143. samup   "name"             plays sample when let go (up...)
  144.  
  145. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  146. // History /////////////////////////////////////////////////////////////////////////////////////////////
  147. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  148.  
  149. 19/04/96
  150.   .oO     Fixed node not found/file not found
  151.   .oO     Fixed Quotes Problem
  152.   .oO     Added @IZONE for Imidiate Zone
  153.  
  154. 09/04/96
  155.   .oO     Added @ZONE
  156.   .oO     Added remote images in link commands
  157.   
  158. 14/03/96:
  159.   .oO     Added Retrace cache/cache clear.
  160.   .oO     Added Font Cache Prune/Clear    (Finally....)
  161.   .oO     Added Image Cache Prune/Clear   (Finally....)
  162.  
  163. 13/03/96:
  164.   .oO     Added Section Command
  165.   .oO     Added Page Command
  166.   .oO     Printing Section / Page in correct place
  167.  
  168. 12/03/96:
  169.   .oO     Added Text Zones and Columns
  170.   .oO     Added Line Spaceing command
  171.  
  172. 11/03/96:
  173.   .oO     Started Machine Code implementation of sample routines
  174.   .oO     Sampled Eagles Hotel Cal.. On da PC (16bit)
  175.  
  176. 10/03/96:
  177.   .oO     Sampled Eagles Hotel Cal.. On da Amiga (8bit)
  178.   .oO     Completed Amos Sample player
  179.  
  180. 09/03/96:
  181.   .oO     PLayer C&C after handing in Assignment :)
  182.   .oO     Ideas for Amos Sample Player
  183.  
  184.  
  185. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  186. // Sample Player details ///////////////////////////////////////////////////////////////////////////////
  187. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  188.  
  189.   After playing Command and Conquer, and listening to the sound track, I thought.. 'Hang on, PC's sound aint
  190. this good.. whats going on here?' Turns out that the music was a 56Meg file. One sample ~60 mins long at 11k/s
  191. played from disk.
  192.  
  193.   Let me tell you something. One day Im gonna write a game for the decent amiga. i.e. 6Mb 030 Hard disk
  194. only proberbly needing 50Mb on the hard drive, and Im gonna do the sound track like that of C&C. One fuck off 
  195. long sample played at a decent sample rate in stereo... So Im writing the play routine now for GS.
  196.  
  197.   Its gonna be able to accept commands from GS, play this sample, Play that sample, and its gonna handle it
  198. all in the background.
  199.  
  200. I have already had a BK sample player in amos (yep.. amos) that was happily playing Eagles hotel cal. at
  201. 20K/s in stereo... Nice.. ill zip it to you one day.
  202.  
  203.   Dont know why Im typing this.... Laters bud.
  204.  
  205.  
  206.  
  207.                         
  208.  
  209.